Optimal. Leaf size=173 \[ -\frac{i (c-i d)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{2 \sqrt{2} a^{3/2} f}+\frac{i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{(d+i c) \sqrt{c+d \tan (e+f x)}}{2 a f \sqrt{a+i a \tan (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.34049, antiderivative size = 173, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.094, Rules used = {3546, 3544, 208} \[ -\frac{i (c-i d)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{2 \sqrt{2} a^{3/2} f}+\frac{i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{(d+i c) \sqrt{c+d \tan (e+f x)}}{2 a f \sqrt{a+i a \tan (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3546
Rule 3544
Rule 208
Rubi steps
\begin{align*} \int \frac{(c+d \tan (e+f x))^{3/2}}{(a+i a \tan (e+f x))^{3/2}} \, dx &=\frac{i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{(c-i d) \int \frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{a+i a \tan (e+f x)}} \, dx}{2 a}\\ &=\frac{(i c+d) \sqrt{c+d \tan (e+f x)}}{2 a f \sqrt{a+i a \tan (e+f x)}}+\frac{i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}+\frac{(c-i d)^2 \int \frac{\sqrt{a+i a \tan (e+f x)}}{\sqrt{c+d \tan (e+f x)}} \, dx}{4 a^2}\\ &=\frac{(i c+d) \sqrt{c+d \tan (e+f x)}}{2 a f \sqrt{a+i a \tan (e+f x)}}+\frac{i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}-\frac{\left (i (c-i d)^2\right ) \operatorname{Subst}\left (\int \frac{1}{a c-i a d-2 a^2 x^2} \, dx,x,\frac{\sqrt{c+d \tan (e+f x)}}{\sqrt{a+i a \tan (e+f x)}}\right )}{2 f}\\ &=-\frac{i (c-i d)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{2} \sqrt{a} \sqrt{c+d \tan (e+f x)}}{\sqrt{c-i d} \sqrt{a+i a \tan (e+f x)}}\right )}{2 \sqrt{2} a^{3/2} f}+\frac{(i c+d) \sqrt{c+d \tan (e+f x)}}{2 a f \sqrt{a+i a \tan (e+f x)}}+\frac{i (c+d \tan (e+f x))^{3/2}}{3 f (a+i a \tan (e+f x))^{3/2}}\\ \end{align*}
Mathematica [A] time = 3.9387, size = 240, normalized size = 1.39 \[ \frac{\sec ^{\frac{3}{2}}(e+f x) \left (-i \sqrt{2} (c-i d)^{3/2} \left (\frac{e^{i (e+f x)}}{1+e^{2 i (e+f x)}}\right )^{3/2} \left (1+e^{2 i (e+f x)}\right )^{3/2} \log \left (2 \left (\sqrt{c-i d} e^{i (e+f x)}+\sqrt{1+e^{2 i (e+f x)}} \sqrt{c-\frac{i d \left (-1+e^{2 i (e+f x)}\right )}{1+e^{2 i (e+f x)}}}\right )\right )-\frac{2 ((3 c-5 i d) \tan (e+f x)-5 i c-3 d) \sqrt{c+d \tan (e+f x)}}{3 \sec ^{\frac{3}{2}}(e+f x)}\right )}{4 f (a+i a \tan (e+f x))^{3/2}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.052, size = 1275, normalized size = 7.4 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.80498, size = 1405, normalized size = 8.12 \begin{align*} -\frac{{\left (3 \, \sqrt{\frac{1}{2}} a^{2} f \sqrt{-\frac{c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a^{3} f^{2}}} e^{\left (4 i \, f x + 4 i \, e\right )} \log \left (\frac{{\left (2 \, \sqrt{\frac{1}{2}} a^{2} f \sqrt{-\frac{c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a^{3} f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} + \sqrt{2}{\left ({\left (i \, c + d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + i \, c + d\right )} \sqrt{\frac{{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} e^{\left (i \, f x + i \, e\right )}\right )} e^{\left (-i \, f x - i \, e\right )}}{i \, c + d}\right ) - 3 \, \sqrt{\frac{1}{2}} a^{2} f \sqrt{-\frac{c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a^{3} f^{2}}} e^{\left (4 i \, f x + 4 i \, e\right )} \log \left (-\frac{{\left (2 \, \sqrt{\frac{1}{2}} a^{2} f \sqrt{-\frac{c^{3} - 3 i \, c^{2} d - 3 \, c d^{2} + i \, d^{3}}{a^{3} f^{2}}} e^{\left (2 i \, f x + 2 i \, e\right )} - \sqrt{2}{\left ({\left (i \, c + d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + i \, c + d\right )} \sqrt{\frac{{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} e^{\left (i \, f x + i \, e\right )}\right )} e^{\left (-i \, f x - i \, e\right )}}{i \, c + d}\right ) - \sqrt{2}{\left ({\left (4 i \, c + 4 \, d\right )} e^{\left (4 i \, f x + 4 i \, e\right )} +{\left (5 i \, c + 3 \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + i \, c - d\right )} \sqrt{\frac{{\left (c - i \, d\right )} e^{\left (2 i \, f x + 2 i \, e\right )} + c + i \, d}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt{\frac{a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} e^{\left (i \, f x + i \, e\right )}\right )} e^{\left (-4 i \, f x - 4 i \, e\right )}}{12 \, a^{2} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]